From e3ba72306045ab47978950c468022f0098610e46 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 19 Nov 2023 13:04:59 +0000 Subject: Generate Patio code for accessing effect method --- ...mpiler.testing.snapshots.Snapshotter)].expected | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..ed1b1c17 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + + +Locals: + * (val "tmp__fence__0" int) + * (val "userDefinedEffectPointer__0" data-ptr) + +Instructions: + +( + (int-to-data-ptr (local "userDefinedEffectPointer__0") (local "b")) + ( + memory-load + (local "tmp__fence__0") + pointer=(local "userDefinedEffectPointer__0") + layout=(struct (int int int)) + offset=(1) + ) +) + +Temporary stack: + * tmp__fence__0 + * a -- cgit v1.2.3